Skip to content

Conversation

VincentLanglet
Copy link
Contributor

@VincentLanglet VincentLanglet commented Sep 28, 2025

Extracted from #4385

When you merge this PR, I would recommend to wait for #4385 too in order to avoid reporting extra "duplicate" message "offset might not exist"/"offset does not exist" since we're detecting more errors with this fix.

I prefer to test hasOffsetValueType rather with errors reported by NonexistentOffsetInArrayDimFetchRule since

@VincentLanglet VincentLanglet force-pushed the fix/HasOffsetValueType branch 2 times, most recently from 60f6325 to adc7fa0 Compare September 28, 2025 21:46
@VincentLanglet VincentLanglet changed the title Fix ArrayType::hasOffsetValueType Fix ConstantArrayType::hasOffsetValueType Sep 28, 2025
@VincentLanglet VincentLanglet changed the title Fix ConstantArrayType::hasOffsetValueType Fix ConstantArrayType::hasOffsetValueType and ArrayType::hasOffsetValueType Sep 28, 2025
@VincentLanglet VincentLanglet marked this pull request as ready for review September 28, 2025 21:53
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes ondrejmirtes merged commit 3c99850 into phpstan:2.1.x Oct 2, 2025
544 of 549 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@VincentLanglet
Copy link
Contributor Author

Thanks, I rebased #4385

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants